home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7908 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  938 b 

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: macro for itoa() ??
  5. Date: Thu, 29 Feb 96 13:59:16 GMT
  6. Organization: none
  7. Message-ID: <825602356snz@genesis.demon.co.uk>
  8. References: <4h083q$7fj@news.csus.edu>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4h083q$7fj@news.csus.edu> wleong@sfsu.edu "WEE-KING LEONG" writes:
  15.  
  16. >Hi, are there any macro that can do itoa() ?
  17. >The reason is that I need to store an integer into my string buffer.
  18. >Is there any other way besides using itoa() ?
  19.  
  20. The usual way is to use something like:
  21.  
  22.    sprintf(buf, "%d", i);
  23.  
  24. -- 
  25. -----------------------------------------
  26. Lawrence Kirby | fred@genesis.demon.co.uk
  27. Wilts, England | 70734.126@compuserve.com
  28. -----------------------------------------
  29.